package com.pig4cloud.pig.demo.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig4cloud.pig.demo.feign.Entity.View;
import lombok.Data;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ViewMapper extends BaseMapper<View> {
    @Select("select sum(num) from view where aid = #{aid}")
    public int getNumsByAid(Long aid);
}
